package com.mvp.shq.washer.entity;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/8/30.
 */

public class VersionBean {

    /**
     * id : 2bdda3cb8df84605a9848df441df70fd
     * remarks :
     * versionName : 安卓
     * platform : 0
     * updateText : 1.没更新啥
     * versionCode : 0.0.1
     * downloadUrl : http://www.baidu.com
     */

    private String id;
    private String remarks;
    private String versionName;
    private String platform;
    private String updateText;
    private String versionCode;
    private String downloadUrl;

    public static VersionBean objectFromData(String str) {

        return new Gson().fromJson(str, VersionBean.class);
    }

    public static List<VersionBean> arrayVersionBeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<VersionBean>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getUpdateText() {
        return updateText;
    }

    public void setUpdateText(String updateText) {
        this.updateText = updateText;
    }

    public String getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(String versionCode) {
        this.versionCode = versionCode;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }
}
